package edu.sctu.practice.class02.zengguangchuan.test04;

/**
 * Created by lenovo0 on 2015/10/14.
 */
public class Number {
    private int n1;
    private int n2;

    public Number(int n1,int n2){
        this.n1=n1;
        this.n2=n2;
    }

    void addition() {
        int n3=n1+n2;
        System.out.println("n3= "+n3+" ");
    }

    void  subtration(){
        int n4=n1-n2;
        System.out.println("n4= "+n4+"");
    }

    void multiplication(){
        int n5=n1*n2;
        System.out.println("n5= "+n5+" ");
    }

    void division(){
        int n6=n1/n2;
        System.out.println("n6= "+n6+" ");
    }

}
